﻿using ProjectFootball.MVC.Foundation;
using ProjectFootball.MVC.Foundation.ResourceLibrary;
using ProjectFootball.MVC.Models.EntityFramework.Entities;
using ProjectFootball.MVC.Models.RepositoryProviders;
using System;
using System.Web.Mvc;

namespace ProjectFootball.MVC.Areas.CountryArea.Controllers
{
    public class DetailsController : BaseController
    {
        #region Constructor
        public DetailsController(IRepositoryProvider provider)
            : base(provider)
        {
        }
        #endregion

        #region //CountryArea/Details
        public ActionResult Index(Guid id)
        {
            var country = Provider.CountryRepository.SearchByPrimaryKey(id);

            return View(country.GetSearchResultViewModel(User, SearchType.Details));
        }
        #endregion
    }
}
